@layout("/common/_container.html",{js:["/assets/common/libs/pinyin/initials.js","/assets/common/libs/pinyin/pinyin.js","/assets/modular/system/btyBxda/btyBxda_add2.js","/assets/modular/system/dgdzxBx/shGhs.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">管理</span>
</div>
<style>
    .zxxz{
        color: #00B83F;
    }
    .zx-name{
        width: 43px;
    }
    .mxbtn{
        width: 65px;
        padding: 0;
    }
    .btnshop {
        display: inline-block;
        height: 30px;
        line-height: 30px;
        padding: 0 18px;
        background-color: #009688;
        color: #fff;
        white-space: nowrap;
        text-align: center;
        font-size: 14px;
        border: none;
        border-radius: 2px;
        cursor: pointer;
        margin-bottom: 10px;
    }
</style>
<div class="layui-fluid">
    <form id="zxChengbenForm" lay-filter="zxChengbenForm" class="layui-form" style="">

    <div class="layui-card">
        <div class="layui-card-header">报销单
            <div class="layui-inline" style="float: right">
                <a  id="shenhe" class="layui-btn" >审核通过</a>
                <a id="bohui"  class="layui-btn" >审核驳回</a>
                <a class="layui-btn" id="backupPage">&emsp;关闭&emsp;</a>
            </div>
        </div>
        <div class="layui-card-body">
                <div class="layui-row layui-col-space10">
                    <div class="layui-col-md4">
                        <div class="layui-form-item">
                            <input id="btyZxChengbenId" name="btyZxChengbenId" value="-1" type="hidden"/>
                            <input id="btyyBxdaKey" name="btyyBxdaKey" type="hidden" value="${bxda.id}"/>
                            <input id="btyyBxdaId" name="btyyBxdaId" type="hidden" value="${bxda.yhk}"/>
                            <input id="btyyBxdaIdView" name="btyyBxdaIdView" type="hidden" value="${bxda.xm}"/>
                            <input id="yhKahao" name="yhKahao" type="hidden" value="${bxda.yhk}"/>
                            <input id="yhKaihuhang" name="yhKaihuhang" type="hidden" value="${bxda.khh}"/>
                            <label class="layui-form-label">单号<span style="color: red;">*</span></label>
                            <div class="layui-input-block">
                                <input id="company" name="company" placeholder="" type="text" class="layui-input" readonly/>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-md4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">日期<span style="color: red;">*</span></label>
                            <div class="layui-input-block">
                                <input id="riqi" name="riqi" placeholder="请选择日期" type="text" class="layui-input"
                                       lay-verify="required" required disabled/>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-md4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">门店</label>
                            <div class="layui-input-block">
                                <select name="btyZxMdzxId" lay-filter="btyZxMdzxId1" id="btyZxMdzxId1" disabled
                                        lay-search="btyZxMdzxId">
                                    <option value="">请选择</option>
                                </select>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-row layui-col-space10">
                    <div class="layui-col-md4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">摘要<span style="color: red;">*</span></label>
                            <div class="layui-input-block">
                                <input id="zhaiyao" name="zhaiyao" placeholder="请输入摘要" type="text" class="layui-input" readonly/>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-md4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">金额</label>
                            <div class="layui-input-block">
                                <input id="zongjia" name="zongjia" placeholder="请输入金额" type="text" class="layui-input" lay-verify="required|double" readonly/>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-md4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">审核金额</label>
                            <div class="layui-input-block">
                                <input id="shje" name="shje"  type="text" class="layui-input" lay-verify="required|double" readonly/>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-md4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">备注</label>
                            <div class="layui-input-block">
                                <input id="beizhu1" name="beizhu" placeholder="请输入备注" type="text" readonly class="layui-input"/>
                            </div>
                        </div>
                    </div>
                </div>

        </div>
    </div>
    </form>

    <div class="layui-card">
        <div class="layui-tab">
            <ul class="layui-tab-title">
                <li class="layui-this">报销单明细</li>
            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    <div class="layui-card-body">


<!--                        <div class="layui-form toolbar">-->



<!--                            <div class="layui-form-item">-->
<!--                                    <div class="layui-col-sm12 zx">-->
<!--                                        <input type="hidden" id="jine" name="jine" value="">-->

<!--                                        <div class="layui-inline" id="btyZxMdzxId_div" style="margin-left: 0px;vertical-align: middle">-->
<!--                                            <label class="layui-form-label"  style="width: 57px;" id="md_sx">门店<span style="color: red;">*</span></label>-->

<!--                                            <div class="layui-inline" style="display: inline-block">-->
<!--                                                <select id="btyZxMdzxId" name="btyZxMdzxId" lay-filter="queryhp"-->
<!--                                                        lay-search="btyZxMdzxId"  lay-verify="required" style="float: left">-->
<!--                                                </select>-->
<!--                                            </div>-->
<!--                                        </div>-->

<!--                                        <div class="layui-inline" id="qtkm_div">-->
<!--                                            <label class="layui-form-label" style="width: 57px;" id="gjz_sx">货品<span style="color: red;">*</span></label>-->
<!--                                            <div class="layui-inline" style="display: inline-block">-->
<!--                                                <input id="qtkm" name="qtkm" type="hidden"/>-->
<!--                                                <select id="huopinId" name="huopinId" lay-filter="huopinId"-->
<!--                                                        lay-search="huopinId">-->
<!--                                                </select>-->
<!--                                            </div>-->
<!--                                        </div>-->

<!--&lt;!&ndash;                                        <div class="layui-inline">&ndash;&gt;-->
<!--&lt;!&ndash;                                            <div class="layui-inline" style="display: inline-block">&ndash;&gt;-->
<!--&lt;!&ndash;                                                <button class="layui-btn icon-btn" id="btnAdd1" lay-filter="btnAdd1" >选择货品</button>&ndash;&gt;-->
<!--&lt;!&ndash;                                            </div>&ndash;&gt;-->
<!--&lt;!&ndash;                                        </div>&ndash;&gt;-->
<!--                                        <div class="layui-inline">-->
<!--                                            <label class="layui-form-label zx-name">数量<span style="color: red;">*</span></label>-->
<!--                                            <div class="layui-inline" style="display: inline-block">-->
<!--                                                <input id="shuliang" name="shuliang" placeholder="数量" type="text" value="1"-->
<!--                                                       class="layui-input" lay-verify="required|double" size="2">-->
<!--                                            </div>-->
<!--                                        </div>-->

<!--                                        <div class="layui-inline">-->
<!--                                            <label class="layui-form-label zx-name">单价<span style="color: red;">*</span></label>-->

<!--                                            <div class="layui-inline" style="display: inline-block">-->
<!--                                                <input id="unitPrice" name="unitPrice" placeholder="单价" type="text"-->
<!--                                                       class="layui-input"  size="2"/>-->
<!--                                            </div>-->
<!--                                        </div>-->

<!--                                        <div class="layui-inline">-->
<!--                                            <label class="layui-form-label zx-name">金额<span style="color: red;">*</span></label>-->

<!--                                            <div class="layui-inline" style="display: inline-block">-->
<!--                                                <input id="bxjine" name="bxjine" readonly placeholder="金额" type="text"-->
<!--                                                       class="layui-input" size="6"/>-->
<!--                                            </div>-->
<!--                                        </div>-->
<!--                                        <div class="layui-inline">-->
<!--                                            <label class="layui-form-label zx-name">备注<span style="color: red;">*</span></label>-->
<!--                                            <div class="layui-inline" style="display: inline-block">-->
<!--                                                <input id="beizhu" name="beizhu" placeholder="请输入备注" type="text"-->
<!--                                                       class="layui-input" lay-verify="" size="15"/>-->
<!--                                            </div>-->
<!--                                        </div>-->

<!--                                        <div class="layui-inline">-->
<!--                                            <div class="layui-inline" style="display: inline-block">-->
<!--                                                <button  class="layui-btn " lay-filter="btnSubmit" lay-submit>&emsp;添加&emsp;</button>-->

<!--&lt;!&ndash;                                                <button class="layui-btn icon-btn" id="btnAdd1" lay-filter="btnAdd1" >&emsp;添加</button>&ndash;&gt;-->
<!--                                                <a id="btnQingkong" class="layui-btn ">清空</a>-->
<!--                                            </div>-->
<!--                                        </div>-->
<!--                                    </div>-->

<!--                            </div>-->
<!--                        </div>-->
                        <table class="layui-table" id="shTable" lay-filter="shTable"></table>
                    </div>
                </div>

            </div>
        </div>

    </div>

</div>

<script type="text/html" id="tableBar">
    {{#  if(d.status == "5" || d.status == "4" || d.status == "3"){ }}
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">修改</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
    {{#  } }}

</script>
<script id="statusTpl" type="text/html">
    {{#  if(d.btyZxChengbenId == ""){ }}
    未生成
    {{#  }else{ }}
    已生成🔒
    {{#  } }}
</script>
<script id="statusTpl2" type="text/html">
    {{#  if(d.status == "4"){ }}
    待提交
    {{#  }else if(d.status == "3"){ }}
    待审批
    {{#  }else if(d.status == "2"){ }}
    待打款
    {{#  }else if(d.status == "1"){ }}
    已打款
    {{#  }else if(d.status == "5"){ }}
    被打回
    {{#  }else{ }}
    未打款
    {{#  } }}
</script>
@}
